import java.util.Arrays;

public class IdCard {
    private int[] Id;
    public IdCard(int[] Id){
        this.Id=Id;
    }
    public void getBirth(int[] Id){
        int[] id=Arrays.copyOfRange(Id,6,13);
        System.out.println(Arrays.toString(id));
    }
    public void getSex(int[] Id){
        int flag=Id[16];
        if(flag%2==0){
            System.out.println("女生");
        }else{
            System.out.println("男生");
        }
    }

    public static void main(String[] args) {
        int[] id={1, 2, 3, 4, 5, 6, 7, 8, 9, 1, 0, 1, 1, 1, 4, 1, 5, 6};
        IdCard person=new IdCard(id);
        person.getBirth(id);
        person.getSex(id);
    }
}
